package com.hunliji.monitor.dao.model.dataobject;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 商家/保证金记录	
 * </p>
 *
 * @author wu_chen
 * @since 2023-05-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("merchant_bond_balance")
public class MerchantBondBalanceDO implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /**
     * 商家id
     */
    private Integer merchantId;

    /**
     * shop_wallet / bond_cash_flow的id
     */
    private Integer entityId;

    /**
     * 1.商家在线充值 2.账户余额充值 3.垫付订单退款  4.违规罚款 5.保证金清算 6.保证金后台核对
     */
    private Integer type;

    /**
     * 操作金额
     */
    private BigDecimal value;

    /**
     * 余额
     */
    private BigDecimal balance;

    /**
     * 说明/留言
     */
    private String message;

    /**
     * 创建时间
     */
    private LocalDateTime createdAt;

    /**
     * 商家影子id
     */
    private String storeSeqId;

    /**
     * 企业id
     */
    private Long corpId;


}
